//
//  BGMoreMessageCell.m
//  bigMall
//
//  Created by ios on 16/10/8.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGMoreMessageCell.h"

@implementation BGMoreMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
//- (instancetype)init {
//    
//    self = [super init];
//    
//    if (self) {
//        
//        
//        
//    }
//    
//    return self;
//    
//}
- (void)layoutSubviews {
    
    for (UIView *v in self.contentView.subviews) {
        [v removeFromSuperview];
    }
    
    UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 3)];
    v.backgroundColor = dockwhite_;
    [self.contentView addSubview:v];
    
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(21, 8, 100, 21)];
    lab.font = [UIFont systemFontOfSize:16];
    lab.text = self.labText;
    lab.textColor = [UIColor redColor];
    [self.contentView addSubview:lab];
    
    UILabel *lab1 = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 120, 8, 89, 21)];
    lab1.textAlignment = NSTextAlignmentRight;
    lab1.text = @"更多信息";
    lab1.font = [UIFont systemFontOfSize:12];
    lab1.textColor = [UIColor lightGrayColor];
    [self.contentView addSubview:lab1];
    
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(lab1.right + 3, lab1.y + 5.5, 10, 10)];
    image.image = [UIImage imageNamed:@"更多信息"];
    image.contentMode = UIViewContentModeScaleAspectFit;
    [self.contentView addSubview:image];
//    btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 44)];
//    [self.contentView addSubview:btn];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
